package com.study.lihan.bean;

/**
 * @Author: lihan
 * @Date : 2022/2/13- 02
 * @DESCRIPTION: com.study.lihan.bean
 * @version: 1.0
 */
public class Wife {
    String name;

    public Wife() {
    }

    public Wife(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        System.out.println("调用了setter方法");
    }

    @Override
    public String toString() {
        return "Wife{" +
                "name='" + name + '\'' +
                '}';
    }
}
